<template>
    <div ref="myChart"/>
</template>

<script>
import {ref, onMounted, toRefs} from 'vue'
import {useRoute} from 'vue-router'
import useBarLineChartOption from "@/composables/useBarLineCharOption";

export default {
    name: "BarLineChartSimple",
    props: {
        filterOption: {type: Object}
    },

    setup(props) {
        const {filterOption} = toRefs(props)
        const myChart = ref(null);
        const type = useRoute().params.type
        onMounted(() => {
            const {setMyChartOption} = useBarLineChartOption(filterOption, myChart, type);
            setMyChartOption()
        })

        return {
            myChart
        }
    },
}
</script>

<style scoped>

</style>